﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Knight.Models.Base
{
    /// <summary>
    /// 站点设置
    /// </summary>
    public class SysSetting : SettingBase
    {
        #region 站点信息
        /// <summary>
        /// 网站名称
        /// </summary>
        public string MallName { get; set; }
        public string ManageTitle { get; set; }
        public string Logo { get; set; }
        public int LogoWidth { get; set; }
        public int LogoHeight { get; set; }
        public string ICO { get; set; }
        public string Description { get; set; }
        public string Keywords { get; set; }
        public string FootContent { get; set; }

        #endregion
    }

    public abstract class SettingBase
    {
        /// <summary>
        /// 设置组名称
        /// </summary>
        public virtual string GetGroupName()
        {
            return this.GetType().Name;
        }
    }
}
